package com.example.demomk.Utils;

import android.os.Bundle;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;

import com.example.demomk.R;

public class baseActivity extends AppCompatActivity {
    protected CustomNavBar customNavBar;
    protected  bottombar tombar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        EdgeToEdge.enable(this);

        // 初始化自定义导航栏
        customNavBar = new CustomNavBar(this);

//        tombar  = new bottombar(this);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        if (customNavBar != null) {
            customNavBar.destroy();
        }
        if (tombar != null) {
            tombar.destroy();
        }
    }
}
